using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;
using Eamon.MeituanDotnetSDK.api.common.request;
using Eamon.MeituanDotnetSDK.attribute;

namespace Eamon.MeituanDotnetSDK.model.ddzh.ugc.ugcQuerystar
{
    /// <summary>
    /// 查询门店星级和单项分
    /// </summary>
    [ApiMeta(
        Path = "/ddzh/ugc/querystar",
        BusinessId = 58,
        ApiVersion = "10002",
        ApiName = "ugc_querystar",
        NeedAuth = true
    )]
    public class UgcQuerystarRequest : MeituanRequest<UgcQuerystarResponse>
    {
        /// <summary>
        /// 1-大众点评，2-美团
        /// </summary>
        [Required(ErrorMessage = "platform不能为空")]
        [JsonPropertyName("platform")]
        public int? Platform { get; set; }

        public override string ToString()
        {
            return $"UgcQuerystarRequest{{Platform={Platform}}}";
        }
    }
}
